import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/mintComponents/Hello'
import Book from '@/mintComponents/Book'
import Search from '@/components/Search'
import Info from '@/components/Info'
import Login from '@/components/Login'
import Check from '@/components/Check'
import SetSp from '@/components/SetSp'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/hello',
      name: 'Hello',
      component: Hello
    },
    {
      path: '/search',
      name: 'Search',
      component: Search
    },
    {
      path: '/book/:roomId',
      name: 'Book',
      component: Book
    },
    {
      path: '/info',
      name: 'Info',
      component: Info
    },
    {
      path: '/check',
      name: 'Check',
      component: Check
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/setSp',
      name: 'SetSp',
      component: SetSp
    },
    {
      path: '/',
      redirect: '/login'
    }
  ]
})